package com.efast.dmom.mgmt.job;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import com.efast.cafe.commponent.job.base.AbstractStatefulJobBean;
import com.efast.cafe.commponent.job.bean.ScheduleExecuteLog;
import com.efast.cafe.framework.spring.SpringContextUtils;
import com.efast.dmom.mgmt.service.mes.ImportFromDirectService;


/**
 * @描述 从服务器指定目录读取文件并导入
 * @创建人 ChenLiPeng
 * @创建时间 2018年4月23日下午3:12:33
 */
public class ImportFromDirectJob extends AbstractStatefulJobBean {
	@Override
	protected void executeInternal(JobExecutionContext context,ScheduleExecuteLog cachelog) throws JobExecutionException {
		ImportFromDirectService importFromDirectService = SpringContextUtils.getBean(ImportFromDirectService.class);
		// TODO Auto-generated method stub
		importFromDirectService.ImportDataFromDirectExcel();
	}

}
